package com.alan.designMode.command;

/**
 * 调用者invoker类
 * Created by Alan on 17-9-18
 */
public class Invoker {

    private Command command;

    //接受命令
    public void setCommand(Command command) {
        this.command = command;
    }

    //执行命令
    public void action(){
        this.command.execute();
    }

}
